package com.atguigu.study.test;
class Fish{
    Integer id;
    String fishName;
    public Fish(){}
    public int eat(){
        return 1;
    }
}
public class ClassLoaderDemo {
    public static void main(String[] args) {
        Object o = new Object();
        System.out.println(o.getClass().getClassLoader());
        Fish fish = new Fish();
        System.out.println(fish.getClass().getClassLoader());
        System.out.println(fish.getClass().getClassLoader().getParent());
        System.out.println(fish.getClass().getClassLoader().getParent().getParent());
    }
}
